home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Tele / R / RR⁄WK procedure tricks #1 < prev    next >
Text File  |  1989-10-21  |  2KB  |  78 lines

  1. RR/WK Procedure Tricks.
  2. Issue #1
  3.  
  4. Here are some tricks for the RR/WK procedure language.
  5.  
  6.  
  7. I have been asked questions on how I was able to get ICONs and
  8. PICTs to work as buttons in I Dream Of Downloading.  Well it's 
  9. quite simple.  In ResEdit, place you PICTs or ICONs in the DITL
  10. resource. Make note of the Item Number of the PICT or ICON. Then
  11. define those Item Numbers as buttons in your SHELL script.
  12.  
  13. Example: You have four ICONs in a DITL of ID 1000. Use the DATA
  14. statement for a button: DATA 0,0,0,0,0,0,0 for each ICON. In all 
  15. DITL's, if the first item is a button, it will become a default 
  16. button, (activated when <CR> is tapped>.
  17.  
  18. SHELLID 1000
  19. ITEMS 4
  20. DATA 0,0,0,0,0,0,0    <-- This will be a highlighted default button
  21. DATA 0,0,0,0,0,0,0
  22. DATA 0,0,0,0,0,0,0
  23. DATA 0,0,0,0,0,0,0
  24.  
  25. ENDSHELL
  26.  
  27.  
  28. __________________________________________________________________
  29.  
  30. How to attach the date at the end of a file name that will be 
  31. opened by the procedure:
  32.  
  33. COPYINTO F$,Filename
  34. (The file that you want to attach a date onto.)
  35.  
  36.  
  37. TIMEDATE A$
  38. (A$ now might contain "08/08/89 23:44:09")
  39.  
  40. LEFT$ B$,5,A$
  41. (B$ now contains "08/08")
  42.  
  43. CONCAT F$,B$
  44. (Attach date to the filename.)
  45.  
  46. RECA F$
  47. (Receive the file)
  48.  
  49. <or>
  50.  
  51. USEROPENO 1,F$
  52. (Open a file ready to be written to.)
  53.  
  54. __________________________________________________________________
  55.  
  56. Next time I'll talk about tricks in ResEdit!
  57.  
  58. I have just recently become an assistant in the FreeSoft RT to
  59. support the procedure language for RR and WK.  I'm am quite familiar
  60. with the language and have written a few RCMDs (RCMD allow you to
  61. write in Pascal or C or any language that makes Code Resources.)  If
  62. you have any questions about procedures or RCMDs, I'll be glad to help
  63. but please post your message in the FreeSoft Bulletin Board.  That way
  64. everyone can benefit from your question.  My e-mail name is B.DANIEL.
  65. Please note that it does not have an S.  If you send mail to B.DANIELS,
  66. I won't get it.. someone else has that name.
  67.  
  68. I am a VAR for AT&T and have quite a bit of experience with UNIX and
  69. communications between UNIX and Mac.  I'll be glad to help anyone with
  70. UNIX questions also.
  71.  
  72.  
  73. This is issue #1 of a series that I will be posting on ocassion. Please
  74. give me some ideas for future issues.
  75.  
  76. Bob Daniel
  77. GEnie: B.DANIEL
  78. AT&T Mail: attmail!cikpc!bob